package com.base.common.bean;

/**
 * 返回的结果
 * 2013-12-6 上午9:10:42
 * @author jay.zhoujingjie
 */
public class ActionResult
{
	public static ActionResult getActionResult(Object data)
	{
		return new ActionResult(data);
	}
	public static ActionResult getActionResult(Object data,Object message)
	{
		return new ActionResult(data, message);
	}
								
	private Object	data;		// 结果
	
	private Object	message;	// 前台提示消息
	
	public ActionResult(Object data)
	{
		this.data = data;
	}
	
	public ActionResult(Object data,Object message)
	{
		this.data = data;
		this.message = message;
	}
	
	public Object getData()
	{
		return data;
	}
	
	public Object getMessage()
	{
		return message;
	}
	
	public void setData(Object data)
	{
		this.data = data;
	}
	
	public void setMessage(Object message)
	{
		this.message = message;
	}
	
}
